package com.big.app.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (TbFoodorder)实体类
 *
 * @author makejava
 * @since 2022-04-21 19:57:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_foodorder")
public class FoodOrder implements Serializable {
    @TableId( value = "id",type = IdType.AUTO)
    private Long id;
    
    private Integer uid;
    
    private String name;
    
    private String no;
    
    private Double price;
    
    private Date ctime;

    public FoodOrder(String name, String no, Double price) {
        this.name = name;
        this.no = no;
        this.price = price;
        this.ctime = new Date();
    }
}

